/**
 * @author ghp
 * @date 2023/6/9
 * @title
 * @description
 */
public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
//        int res = solution.trap(new int[]{0, 1, 0, 2, 1, 0, 1, 3, 2, 1, 2, 1});
        int res = solution.trap(new int[]{2,0,2});
        System.out.println(res);
    }
}
